'use strict'
const { cors } = require('titbit-toolkit');

let cr = new cors({
    allow: ['http://localhost:1234',
    'http://localhost:1235',
    'http://localhost:1236'],
    //允许提交空的referer
    allowEmptyReferer: false
})

module.exports = [
    {
        pre: true,
        middleware: cr.mid()
    }
]
